<?php
    /* @var $this CategoryController */
    /* @var $data Category */
?>

<div class="view">

    <b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b>
    <?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id' => $data->id)); ?>
    <br/>

    <b><?php echo CHtml::encode($data->getAttributeLabel('parentId')); ?>:</b>
    <?php echo isset($data->parent) ? $data->parent->name : ''; ?>
    <br/>

    <b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b>
    <?php echo CHtml::encode($data->name); ?>
    <br/>

    <b><?php echo CHtml::encode($data->getAttributeLabel('rank')); ?>:</b>
    <?php echo CHtml::encode($data->rank); ?>
    <br/>

    <b><?php echo CHtml::encode($data->getAttributeLabel('status')); ?>:</b>
    <?php echo $data->status == 1 ? "Hiện" : "Ẩn"; ?>
    <br/>


</div>